<script>
    function bt1click() {
        console.log("hi!");
        var password = $(" #exampleInputPassword1 ").val()
        console.log(password);
        //加密成md5
        var md5psw = $.md5(password);
        console.log(md5psw)
         $("#exampleInputPassword1").val(md5psw);
        return true;
    }
</script>
<div class="container-fluid" style="width: 800px;padding-bottom: 300px;">
    <div class="row">
        <div class="col-md-12">
            <h3 class="text-primary">
                用户登入
            </h3>
            <form role="form" method="get" action="./check.php">
                <div class="form-group">

                    <label for="exampleInputEmail1">
                        用户名
                    </label>
                    <input type="text" class="form-control" id="exampleInputEmail1" name="user" value="<?php echo $iuser;?>"/>
                </div>
                <div class="form-group">

                    <label for="exampleInputPassword1">
                        密码
                    </label>
                    <input type="password" class="form-control" id="exampleInputPassword1" name="psw" value="<?php echo $ipsw;?>"/>
                </div>

                <div class="checkbox">

                    <label>
                        <input type="checkbox" name="check" <?php echo $icheck;?> /> 记住密码
                    </label>
                </div>
                <button type="submit" class="btn btn-primary" onclick="return bt1click()"  >
                    提交
                </button>
            </form>
        </div>
    </div>
</div>
